package com.gxa.saas.admin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gxa.saas.admin.mapper.AdminMapper;
import com.gxa.saas.admin.service.AdminService;
import com.gxa.saas.core.entity.Admin;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class AdminServiceImpl extends ServiceImpl<AdminMapper, Admin> implements AdminService {

    @Resource
    private AdminMapper adminMapper;

    @Override
    public Integer login(String aName, String aPwd) {
        Integer login = adminMapper.login(aName, aPwd);
        return login;
    }
}
